﻿using System;
using System.Data;
using CXJ.Libiary;
using System.Collections.Generic;

namespace CXJ.Model.Demo
{
    public class tbCartoonEntity : BaseEntity
    {
        public override string TABLE_NAME { get { return "tbCartoon"; } }
        public override string PK { get { return "iCartoonid_PK"; } }
        public override object PK_VALUE
        {
            get { return iCartoonid_PK; }
            set { iCartoonid_PK = value.ToString(); }
        }
        [DBColumnAttribue(true, true, true, true, true, DbType.Int32)]
        public string iCartoonid_PK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sCartoonName { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iUserid_FK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sLetterT { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iThemeT_FK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iUserT_FK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iProgressT { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iTypeT_FK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sMaxPhoto { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sMinPhoto { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iMoods { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sCAbout { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sURemark { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iScore { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iCount { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string iSequence { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseB { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseG { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseY { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseS { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseL { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string iSenseK { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.DateTime)]
        public string dUpdateTime { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public string sFlag { get; set; }

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sNew { get; set; }

        private List<tbCartoonDetailEntity> _ChildItem = new List<tbCartoonDetailEntity>();
        public override CXJ.Interface.IBaseEntity[] ChildItem
        {
            get { return _ChildItem.ToArray(); }
            set
            {
                foreach (CXJ.Model.Demo.tbCartoonDetailEntity item in value)
                {
                    _ChildItem.Add(item);
                }
            }
        }
    }
}
